//显示发送的输入框的值
function viewMessage(json) {
    let num = 1;
    for (let key in json) {
        let a = document.createElement("li");
        if (num == 1) {
            a.innerHTML = "向后端传输的数据为：</br>" + json[key];
            num++;
        } else {
            a.innerText = json[key];
        }
        document.querySelector("#formal5").appendChild(a);
    }
}

function viewMessage2(json) {
    let num = 1;
    for (let key in json) {
        let a = document.createElement("li");
        if (num == 1) {
            a.innerHTML = "你向后端传输的数据为：</br>" + json[key];
            num++;
        } else {
            a.innerText = json[key];
        }
        document.querySelector("#message").appendChild(a);
    }
}